* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
}

/* 页眉和英雄区域的背景样式 */
.top-background {
    position: relative;
    width: 100%;
    height: 400px;
    background-image: url('./src/图片\ 1@1x\ \(1\).png');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
}

/* 页眉样式 */
header {
    display: flex;
    /* justify-content: space-between; */
    justify-content: flex-start;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(255, 255, 200, 0);
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    font-size: 18px;
    font-weight: bold;
    color: #febf66;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: flex-start;
    align-items: center;
    margin-left: 20px;

}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #54251e;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: #febf66;
    font-weight: bold;
}

.user-actions {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
    margin-left: auto;
}


.profile-btn {
    display: flex;
    align-items: center;
    margin-right: 20px;
    text-decoration: none;
    color: #eb9b3e;
    background-color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: bold;
}

.profile-btn img    {
 width: 20px;
    height: 20px;
    margin-right: 5px;
}

.login-btn {
    background-color: #eb9b3e;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
    font-weight: bold;
}

.login-btn:hover {
    background-color: #FF7F00;
}

/* 主内容样式 */
.hero-section {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    color: white;
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-left: 100px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: #fff;
}

.hero-content p {
    font-size: 18px;
    max-width: 500px;
}

/* 内容区块样式 */
.content-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    background-color: white;
    margin-bottom: 20px;
}

.content-section:nth-child(even) {
    flex-direction: row-reverse;
}

.content-image {
    flex: 1;
    padding: 20px;
}

.content-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.content-text {
    flex: 1;
    padding: 20px 50px;
}

.content-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #8B4513;
    text-align: center;
}
.content-text h2 a {
    text-decoration: none; /* 去掉下划线 */
    color: #8B4513; /* 设置链接颜色 */
    font-size: 50px; /* 设置字体大小 */
    /* font-weight: 300; 设置字体粗细 */
    /* font-style: italic; 
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); 
    font-family: 'ZCOOL XiaoWei', serif;  */
    cursor: pointer; 
}

.content-text h2 a:hover {
    color: #FF7F00; /* 设置悬停时的链接颜色 */
}
.content-text p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin: 15px 0;
    }
    
    .user-actions {
        margin-top: 15px;
    }
    
    .hero-content {
        margin-left: 50px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .content-section {
        flex-direction: column;
        padding: 30px 20px;
    }
    
    .content-section:nth-child(even) {
        flex-direction: column;
    }
    
    .content-image, .content-text {
        width: 100%;
        padding: 20px;
    }
    
    .content-text {
        padding-top: 30px;
    }
}